package com.xqboss.apps.mapper.consumer;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.consumer.ConsumerFriendsApply;
import com.xqboss.apps.domain.consumer.ConsumerTeamApply;
import com.xqboss.apps.dto.consumer.ConsumerFriendsApplyDto;
import com.xqboss.apps.vo.consumer.ConsumerFriendsApplyVo;

import java.util.List;

/**
 * 好友申请Mapper接口
 *
 * @author xqboss
 * @date 2023-08-17
 */
public interface ConsumerFriendsApplyMapper extends BaseMapper<ConsumerFriendsApply> {

    /**
     * 查询好友申请
     *
     * @param id 好友申请主键
     * @return 好友申请
     */
    public ConsumerFriendsApply selectConsumerFriendsApplyById(Long id);

    /**
     * 查询好友申请列表
     *
     * @param consumerFriendsApply 好友申请
     * @return 好友申请集合
     */
    public List<ConsumerFriendsApply> selectConsumerFriendsApplyList(ConsumerFriendsApply consumerFriendsApply);

    /**
     * 新增好友申请
     *
     * @param consumerFriendsApply 好友申请
     * @return 结果
     */
    public int insertConsumerFriendsApply(ConsumerFriendsApply consumerFriendsApply);

    /**
     * 修改好友申请
     *
     * @param consumerFriendsApply 好友申请
     * @return 结果
     */
    public int updateConsumerFriendsApply(ConsumerFriendsApply consumerFriendsApply);

    /**
     * 删除好友申请
     *
     * @param id 好友申请主键
     * @return 结果
     */
    public int deleteConsumerFriendsApplyById(Long id);

    /**
     * 批量删除好友申请
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteConsumerFriendsApplyByIds(Long[] ids);

    List<ConsumerFriendsApplyVo> selectMeApplyList(ConsumerFriendsApplyDto dto);

    List<ConsumerFriendsApplyVo> selectFriendApplyList(ConsumerFriendsApplyDto dto);
}

